﻿
using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Sim.Company.Position;
using BCEntity.Sim.Company.Position;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Sim.Company.Position
{
    public class PositionProfile : Profile
    {
        public PositionProfile()
        {

            //岗位
            CreateMap<PositionDto, PositionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PositionRequestDto, PositionPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PositionRequestDto, PositionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PositionPutDto, PositionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PositionEntity, PositionDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
